import request from '../utils/request.js'

export function clientList(params) {
  return request({
    // url: '/pc/user/login',
    url: '/dclient/list',
    method: 'post',
    data: params
  })
}

export function addUser(params) {
  return request({
    url: '/dclient/add',
    method: 'post',
    data: params
  })
}

export function submitForm(params) {
  return request({
    url: '/dclient/update',
    method: 'post',
    data: params
  })
}

export function getUserInfo(param) {
  return request({
    url: '/dclient/getOne',
    method: 'post',
    data: param
  })
}

export function deleteUser(params) {
  return request({
    url: '/dclient/del',
    method: 'post',
    data: params
  })
}

export function sendSMS(params) {
  return request({
    url: '/pc/sendsms',
    method: 'get',
    params: params
  })
}